home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / dbwrendr.zip / SOURCE / DISPLAY.H < prev    next >
Text File  |  1989-11-04  |  1KB  |  34 lines

  1. #ifndef FALSE
  2. #define FALSE 0
  3. #endif
  4. #ifndef TRUE
  5. #define TRUE !FALSE
  6. #endif
  7.  
  8. #define BPP         4                   /* Bits per pixel */
  9. #define MAXROW      200                 /* Rows run 0-199 */
  10. #define MAXCOL      320                 /* Cols run 0-319 */
  11. #define COLORS      256
  12. #define BITS        8                   /* 2^BITS == COLORS */
  13. #define TMPCOLORS  4096                 /* colors in TMP file, 0..4095 */
  14.  
  15. #define MAXBYTE     40                  /* MAXCOL / 8     */
  16. #define DEPTH       6
  17. #define MAXGRAY     (1 << BPP)
  18. #define PPW         (sizeof( int ) * 8 / BPP)
  19. #define WPSL        (MAXCOL / PPW)
  20. #define ABS(x)      ((x) < 0 ? -(x) : (x))
  21.  
  22.  
  23. typedef int              scanlinetype[3][WPSL];
  24. typedef unsigned char    byte;
  25.  
  26. #define  RED   0         /* color indices into 'line'  */
  27. #define  GREEN 1
  28. #define  BLUE  2
  29.  
  30. int gifPixel( short );
  31. int gifFlush( void  );
  32.  
  33.  
  34.